package com.ibsol.service
{
	import com.ibsol.database.CustomerDAO;
	
	import mx.collections.ArrayCollection;
	
	public class CustomerService
	{
		private var customerDAO:CustomerDAO;
		
		public function CustomerService(){
			customerDAO=new CustomerDAO();
		}
		/**
		 * 查询当前用户的所有客户
		 * @param id 当前用户编号
		 **/
		public function getCustomerByUid(id:int):ArrayCollection{
			var ac:ArrayCollection=new ArrayCollection();
			customerDAO.loadCustomersByUser(id,function (actemp:ArrayCollection):void{
				ac=actemp;
			});
			return ac;
		}
	}
}